{$sValMess}
{messages}
<form method="post" action="{url link='current'}" name="cpform" id="cpform" onsubmit="{$sValJs}">
<table style="width:100%;" class="forumline" cellspacing="0">
<tr>
	<td class="row-header" colspan="2"><span>{language text="adding_new_option"}</span></td>
</tr>
{if !$iId}
<tr>
	<td class="row1" style="text-align:right;">
		{language text="Mod_Language.language"}:
	</td>
	<td class="row1">
		<select name="id">
		{foreach from=$aLanguages item=aLanguage}
			<option value="{$aLanguage.id}"{if $aPost.id == $aLanguage.id} selected="selected="{/if}>{$aLanguage.title}</option>
		{/foreach}
		</select>
	</td>
</tr>
{/if}
<tr>
	<td class="row1" style="text-align:right;">
		{language text="Mod_Language.drop_down_option"}:
	</td>
	<td class="row1">
		<select name="val[option]">
		{foreach from=$aOptions item=aOption}
			<option value="{$aOption.varname}">{language text=$aOption.languagevar}</option>
		{/foreach}
		</select>
	</td>
</tr>
<tr>
	<td class="row1" style="text-align:right; vertical-align:top;">
		Text:
	</td>
	<td class="row1">
		<textarea cols="60" rows="8" name="val[text]">{$aItem.text|escape}</textarea>
	</td>
</tr>
<tr>
	<td class="catBottom" colspan="2" style="text-align:center;">
	<input type="submit" name="save" value="{language text="Mod_Language.save"}" />
	</td>
</tr>
</table>
</form>